import request from "../utils/request";
export function reqType(page, limit) {
  return request({
    url: `/admin/product/baseTrademark/${page}/${limit}`,
    method: "get",
  });
}

export function reqTypeAddOrUpdate(data) {
  if (data.id) {
    //修改
    return request({
      url: "/admin/product/baseTrademark/update",
      method: "put",
      data,
    });
  } else {
    return request({
      url: "/admin/product/baseTrademark/save",
      method: "post",
      data,
    });
  }
}
//删除
export function reqDelete(id) {
  return request({
    url: `/admin/product/baseTrademark/remove/${id}`,
    method: "delete",
  });
}
